home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 395_01 / typing / include / tt.h < prev   
Encoding:
C/C++ Source or Header  |  1993-11-19  |  2.2 KB  |  87 lines

  1. /* #ident "@(#)tt.h - Header File for the Typing Tutor Package." */
  2.  
  3. /* #define PERFORMANCE */
  4.  
  5. #include <curses.h>
  6. #include <malloc.h>
  7.  
  8. #define COPYRIGHT_LINE 7
  9. #define ANNOUNCE_LEFT 4
  10. #define INTER_NOTICE_SPACE 4
  11. #define READ_TIME 4
  12.  
  13. #define TITLE_LINE 0
  14. #define FILE_NAME_SIZE 128
  15.  
  16. #define TEXT_LEFT_SIDE 2
  17. #define TEXT_TOP_LINE 1
  18. #define WINDOW_SEPARATION 0
  19.  
  20. #define IN TRUE
  21. #define OUT FALSE
  22.  
  23. #define SPACE ' '
  24. #define VERTICAL '|'
  25. #define HORIZONTAL '-'
  26. #define UNDERLINE '_'
  27. #define INSTRUCTION_FLAG ('^')
  28. #define DATA_FLAG ('.')
  29.  
  30. #define TOP_WINDOW_HEIGHT 10
  31. #define TOP_WINDOW_WIDTH COLS
  32. #define TOP_WINDOW_ROW 1
  33. #define TOP_WINDOW_COLUMN 0
  34.  
  35. #define MIDDLE_WINDOW_HEIGHT 6
  36. #define MIDDLE_WINDOW_WIDTH TOP_WINDOW_WIDTH
  37. #define MIDDLE_WINDOW_ROW \
  38.     ( TOP_WINDOW_ROW + TOP_WINDOW_HEIGHT + WINDOW_SEPARATION )
  39. #define MIDDLE_WINDOW_COLUMN TOP_WINDOW_COLUMN
  40.  
  41. #define BOTTOM_WINDOW_HEIGHT MIDDLE_WINDOW_HEIGHT
  42. #define BOTTOM_WINDOW_WIDTH TOP_WINDOW_WIDTH
  43. #define BOTTOM_WINDOW_ROW \
  44.     ( MIDDLE_WINDOW_ROW + MIDDLE_WINDOW_HEIGHT + WINDOW_SEPARATION )
  45. #define BOTTOM_WINDOW_COLUMN TOP_WINDOW_COLUMN
  46.  
  47. /*
  48.  * Alternate Character set for the Qume qvt119 terminal.
  49.  * Line drawing ACS names are of the form ACS_trbl, where t is the top, r
  50.  * is the right, b is the bottom, and l is the left.  t, r, b, and l might
  51.  * be B (blank), S (single), D (double), or T (thick).    The subset defined
  52.  * here only uses B and S.
  53.  */
  54.  
  55. #ifdef qvt119rv80
  56.  
  57. #undef ACS_BSSB
  58. #undef ACS_SSBB
  59. #undef ACS_BBSS
  60. #undef ACS_SBBS
  61. #undef ACS_SBSS
  62. #undef ACS_SSSB
  63. #undef ACS_SSBS
  64. #undef ACS_BSSS
  65. #undef ACS_BSBS
  66. #undef ACS_SBSB
  67. #undef ACS_SSSS
  68.  
  69. #define ACS_BSSB    (A_ALTCHARSET | 'f')
  70. #define ACS_SSBB    (A_ALTCHARSET | 'e')
  71. #define ACS_BBSS    (A_ALTCHARSET | 'g')
  72. #define ACS_SBBS    (A_ALTCHARSET | 'h')
  73. #define ACS_SBSS    (A_ALTCHARSET | 'l')
  74. #define ACS_SSSB    (A_ALTCHARSET | 'm')
  75. #define ACS_SSBS    (A_ALTCHARSET | 'o')
  76. #define ACS_BSSS    (A_ALTCHARSET | 'n')
  77. #define ACS_BSBS    (A_ALTCHARSET | 'k')
  78. #define ACS_SBSB    (A_ALTCHARSET | 'j')
  79. #define ACS_SSSS    (A_ALTCHARSET | 'i')
  80. #endif
  81.  
  82. #undef border
  83. #define border(win) wborder(win,\
  84. ACS_VLINE, ACS_VLINE, ACS_HLINE, ACS_HLINE,\
  85. ACS_ULCORNER, ACS_URCORNER, ACS_LLCORNER, ACS_LRCORNER ); wattrset(win, 0)
  86.  
  87.